<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix' => config('admin.route.prefix'),
    'namespace' => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
    'as' => config('admin.route.prefix') . '.',
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('home');

    $router->resource('sweetness_list', SweetnessListController::class);
    $router->resource('slide', SlideController::class);

    $router->resource('product', ProductController::class);
    $router->resource('product_category', ProductCategoryController::class);
    $router->resource('web_config', WebConfigController::class);

    $router->resource('user', UserController::class);

    $router->resource('product_sku', ProductSkuController::class);
    $router->resource('product_order', ProductOrderController::class);
    $router->resource('product_list', ProductListController::class);

    $router->resource('user_videos', UserVideosController::class);

    $router->resource('store_users', StoreUsersController::class);

    $router->resource('express_company', ExpressCompanyController::class);

    $router->resource('business', BusinessController::class);

    $router->resource('stamps', StampsController::class);
    $router->resource('agreement', AgreementController::class);
});
